//
//  myMapViewController.h
//  myMap
//
//  Created by Neelam Roy on 8/6/10.
//  Copyright __MyCompanyName__ 2010. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>
#import <CoreLocation/CoreLocation.h>
#import "CommonDelegates.h"
#import "sqlite3.h"

@class WebFectcher;
@interface myMapViewController : UIViewController <MKMapViewDelegate,CLLocationManagerDelegate,UIPickerViewDataSource, UIPickerViewDelegate,WebFetcherDelegate,UITextFieldDelegate,UITextViewDelegate> 
{
	
    IBOutlet MKMapView* myMapView;
    CLLocationManager *locationManager;
    IBOutlet UITextView * problemTextView;
    IBOutlet UITextField * address;
    IBOutlet UITextField * contactNo;
    IBOutlet UITextField * province;
    IBOutlet UITextField * city;
    IBOutlet UITextField * area;
    IBOutlet UITextField * type;
    IBOutlet UIPickerView *provincePickerView;
    IBOutlet UIPickerView *cityPickerView;
    IBOutlet UIPickerView *areaPickerView;
    NSMutableArray *arrayProvinces;
    NSMutableArray *arrayCities;
    NSMutableArray *arrayAreas;
    NSMutableArray *arrayTypes;
    
    WebFectcher *webFtch;
    UIView *actView;
    NSString        *databasePath;
    sqlite3 *contactDB;

    
}

@property (nonatomic, retain) IBOutlet MKMapView* myMapView;
@property (nonatomic, retain) IBOutlet UITextView * problemTextView;
@property (nonatomic, retain) IBOutlet UITextField * address;
@property (nonatomic, retain) IBOutlet UITextField * contactNo;
@property (nonatomic, retain) IBOutlet UITextField * province;
@property (nonatomic, retain) IBOutlet UITextField * city;
@property (nonatomic, retain) IBOutlet UITextField * area;
@property (nonatomic, retain) IBOutlet UITextField * type;
@property (nonatomic, retain) IBOutlet UIPickerView *provincePickerView;
@property (nonatomic, retain) IBOutlet UIPickerView *cityPickerView;
@property (nonatomic, retain) IBOutlet UIPickerView *areaPickerView;
@property (nonatomic, retain) IBOutlet UIPickerView *typePickerView;

-(void)displayMYMap;
-(IBAction) backButtonAction;
-(IBAction) submitButtonAction;
-(IBAction) provinceButtonAction;
-(IBAction) cityButtonAction;
-(IBAction) areaButtonAction;
-(IBAction) typeButtonAction;
-(void) callWebFetcherWithData:(NSDictionary*)dict;
@end

